<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>上传下载</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
  </head>
  
  <body>
     <div>
     <a href="jsp/01.jsp">1.js切换图片</a>
     <a href="jsp/02.jsp">2.js选择图片并预览</a>  
     <a href="jsp/03.jsp">3.servlet上传文件</a>  ${result}  ${uploadPath}
     <br/>
     下载：<a href="downloadServlet?filename=test1.txt">test1.txt</a> &nbsp;&nbsp; ${errorResult}
     <br/>
     <a href="jsp/multiFile01.jsp">4.使用SmartUpload上传多个文件</a><br>
     smart下载<a href="smartDownloadServlet?filename=img2-lg.jpg">下载图片</a>
     <hr>
     	 <h2>文件批量下载</h2>
  	 <form action="batchDownloadServlet">
  	 	<input type="checkbox"  name="filename" value="img2-lg.jpg">Image2
  	 	<input type="checkbox"  name="filename" value="img3-lg.jpg">Image3
  	 	<input type="checkbox"  name="filename" value="img4-lg.jpg">Image4
  	 	<input type="submit" value="下载">
  	 </form> 
     </div>
  </body>
</html>
